package Demo;
class MyThread extends Thread{
    public void run(){
        System.out.println("线程1执行");
        }
}
public class ThreadDemo1 {
    public static void main(String[] args) {
        MyThread t1 = new MyThread();
        t1.start();
        System.out.println("主线程执行");
    }
}
